package com.zhbit.action;

import com.opensymphony.xwork2.ActionSupport;
import com.zhbit.Service.ContentmangerService;

public class LikecontentAction extends ActionSupport{
private int id;
private ContentmangerService cs;

/**
 * @return the cs
 */
public ContentmangerService getCs() {
	return cs;
}

/**
 * @param cs the cs to set
 */
public void setCs(ContentmangerService cs) {
	this.cs = cs;
}

/**
 * @return the id
 */
public int getId() {
	return id;
}

/**
 * @param id the id to set
 */
public void setId(int id) {
	this.id = id;
}
public String execute() throws Exception {
	cs.addlikecount(id);
	return SUCCESS;	
}

}
